﻿using System.Collections.Generic;
using ShopB2C.Enums;

namespace ShopB2C.Helper {
    public class MessageException {
        /// <summary>
        /// 消息状态
        /// </summary>
        public MessageStatus Status { get; set; }
        /// <summary>
        /// 消息正文
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        /// 返回类型
        /// </summary>
        public ResultType ResultType { get; set; }
        /// <summary>
        /// 返回为View时需要提供的ViewName
        /// </summary>
        public string ViewName { get; set; }
        /// <summary>
        /// 将要执行的操作，只所以这么做，有可能不是产生链接，可以用其他扩展方法产生例如button等html字符串
        /// </summary>
        public List<string> Operate { get; set; }
        /// <summary>
        /// 默认操作
        /// </summary>
        public string DefaultOperate { get; set; }
        /// <summary>
        /// 验证状态
        /// </summary>
        public bool IsValid { get; set; }
    }
}
